<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--CDN引入方式-->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>

<div id="app">
    <h1>{{msg}}</h1>
    <ul>
        <li v-for="result in user">
            {{result}}
        </li>
    </ul>

    <ul>
        <li v-for="(val, key) in user">
            {{key}} ---- {{val}}
        </li>
    </ul>

    <ul>
        <li v-for="(val, key, index) in user">
            {{index}} ---- {{key}} ---- {{val}}
        </li>
    </ul>
</div>

</body>

<script src="../js/vue07.js" />

</html>